#include <iostream>
#include <string>
using namespace std;

typedef struct shuju
{
    string name;
    string tel;
} shuju;

struct Node
{
    shuju date;
    struct Node *next;
};
struct Node *creatlist()
{
    struct Node *headNode = new Node;
    headNode->next = NULL;
    return headNode;
};
struct Node *creatNode(string date, string tel)
{
    struct Node *newNode = new Node;
    newNode->date.name = date;
    newNode->date.tel = tel;
    newNode->next = NULL;
    return newNode;
};
void printList(struct Node *headNode)
{
    struct Node *Pmove = headNode->next;
    while (Pmove)
    {
        cout << Pmove->date.name << endl;
        cout << Pmove->date.tel << endl;
        Pmove = Pmove->next;
    }
    printf("\n");
}
void insert_Node_By_HeadNode(struct Node *headNode, string date, string tel)
{
    struct Node *newNode = creatNode(date, date);
    newNode->next = headNode->next;
    headNode->next = newNode;
}
int main()
{
    struct Node *list = creatlist();
    insert_Node_By_HeadNode(list, "aaa", "aaa");
    insert_Node_By_HeadNode(list, "bbb", "bbb");
    insert_Node_By_HeadNode(list, "ccc", "ccc");
    printList(list);
}